package com.gxa.jjty.admin.service;

import com.gxa.jjty.core.exception.BusinessException;
import com.gxa.jjty.core.pojo.Score;
import com.gxa.jjty.core.service.BaseService;

/**
 * @author asus
 */
public interface ScoreService extends BaseService<Score> {

    /**
     * 根据id查询分值
     * @param id
     * @return
     */
    Score selectById(Long id) throws BusinessException;

    /**
     * 编辑score
     * @param score
     */
    void updateScore(Score score) throws BusinessException;

    /**
     * 根据id删除记录
     * @param id
     */
    void deleteById(Long id) throws BusinessException;

    /**
     * 添加分值
     * @param score
     */
    void insertScore(Score score) throws BusinessException;

    /**
     * 根据id删除
     * @param id
     */
    public  void deleteAppServe(Long id) throws BusinessException;

}
